#Make file for SureSave 10 ETH driver

GITVERSION="git-$(shell git describe --dirty --always)-`date "+%Y %D %H:%M:%S"`"
EXTRA_CFLAGS += -DGITVERSION=\"${GITVERSION}\"
#EXTRA_CFLAGS += -DDEBUG -g

ifeq (/home/tyy/p/da/linux-3.1, $(wildcard /home/tyy/p/da/linux-3.1))
KERNELDIR ?= /home/tyy/p/da/linux-3.1
else
KERNELDIR ?= /lib/modules/`uname -r`/build
endif

obj-m := eth10g.o
eth10g-objs := netdev.o xaxidma_bd.o xaxidma_bdring.o xaxidma.o xio.o spiflash.o

default:
	        $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) modules

clean:
	rm -f *.o *.ko .*.cmd *.mod.c .*.d .depend Modules.symvers \
		Module.symvers Module.markers modules.order
	rm -rf .tmp_versions
